﻿using System;
using System.Net;
using System.Windows.Forms;

namespace DVDFilmoteka.Forms
{
    public partial class DownloadProgress : Form
    {
        public DownloadProgress()
        {
            InitializeComponent();
        }

        private void DownloadProgress_Load(object sender, EventArgs e)
        {
            progressBar1.Maximum = 100;
        }

        public void downloadProgressChanged(object sender, DownloadProgressChangedEventArgs e)
        {
            progressBar1.Value = e.ProgressPercentage;
            label1.Text = "Staženo: " + e.BytesReceived + "/" + e.TotalBytesToReceive;
        }
    }
}
